/**
 * Created by ZhangGong on 2017/2/19.
 */

/*
说明：
@xx-bgc:背景色
@xx-color:字体颜色
@xx-height:xx的高度
*/
@nav-bgc: #dfe0e1; //导航条背景
@nav-height: 25px;
@nav-min-width:500px;
@nav-color: #555;
@nav-padding-top:25px;

@content-min-height:560px;

@footer-bgc: #727f80;
@footer-color: #e8fff7;
@footer-height: 180px;

@main-color: #4fc08d; //网页主题色
@color-orange: #e96900; //教程代码颜色 如“var”
@color-blue: #1c90f3; //教程代码颜色 如“var”

@btn-download-height: 44px; //主页下载btn的高度
@btn-row-padding: 30px; //主页下载btn的水平padding
@btn-download-mrgin-right: 15px;
@link-color: #0066ff;
@font-color-white: #fff;
@font-color-deep: #444; //深颜色字体
@font-color-deep2: #222; //更深颜色字体,如下载页面的标题

@font-btn-size1: 18px;
@link-icon-width: 60px;
@link-icon-height: 60px;
@link-icon-margin: 40px; //主页底部链接图标

//下载页面
@font-size-title: 26px;
@font-weight-400: 400;
@font-strong: 800;
@border-color-deep: #222;
@border-color-light: #ddd;
@table-box-width: 800px;
@table-border-color: #666;
/*reset*/
body, p, h1, h2, h3, h4, h5, h6, form, ul, ol, hr {
  margin: 0;
  padding: 0;
  font: 14px/1.5, normal, 'Arial', "Tahoma";
  color: #444;
}

ul, ol {
  list-style: none
}

a {
  text-decoration: none;
}

.wrap {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .wrap {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .wrap {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .wrap {
    width: 1170px;
  }
}

.wrap-fluid {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;

  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
  float: left;
}

.col-md-12 {
  width: 100%;
}

.col-md-11 {
  width: 91.66666667%;
}

.col-md-10 {
  width: 83.33333333%;
}

.col-md-9 {
  width: 75%;
}

.col-md-8 {
  width: 66.66666667%;
}

.col-md-7 {
  width: 58.33333333%;
}

.col-md-6 {
  width: 50%;
}

.col-md-5 {
  width: 41.66666667%;
}

.col-md-4 {
  width: 33.33333333%;
}

.col-md-3 {
  width: 25%;
}

.col-md-2 {
  width: 16.66666667%;
}

.col-md-1 {
  width: 8.33333333%;
}

.btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  text-align: center;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: 1px solid transparent;
  white-space: nowrap;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  border-radius: 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

.btn:hover,
.btn:focus,
.btn.focus {
  color: #333333;
  text-decoration: none;
}

.btn:active,
.btn.active {
  outline: 0;
  background-image: none;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn.disabled,
.btn[disabled] {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.65;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
  box-shadow: none;
}

.btn-sm {
  padding: 2px 5px;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  //border-top: 1px solid #dddddd;
  //border-bottom: 1px solid #666;
}

.table > thead > tr > th {
  vertical-align: bottom;
  //border-bottom: 2px solid #dddddd;
}

.table-th {
  font-weight: @font-strong;
  padding: 8px;
  border: none;
  overflow: hidden;
  //text-align: center;
}

.table-tr {
  border-bottom: 1px solid @border-color-light;
  overflow: hidden;
  //text-align: center;

  div {
    padding: 8px;
  }
}

.table-tr-size {
  max-width: @table-box-width;
}

.page-header {
  height: @nav-height;
  line-height: @nav-height;
  background: @nav-bgc;
  width:100%;
  min-width: @nav-min-width;
  padding: @nav-padding-top 0;
  position: fixed;
  top:0;
  z-index: 999999;
}

.ddr-logo {
  font-size: 26px;
  font-weight: bold;
  margin-left: 20px;
  color: @font-color-deep;
  float: left;
  a {
    color: @font-color-deep;
  }
}

.nav-top {
  float: right;
  margin-right: 20px;
}

.nav-top li {
  display: inline-block;
  margin-right: 10px;
}

.nav-top li:last-of-type {
  display: inline-block;
  margin-left: 20px;
  margin-right: 20px;
}

.nav-top a {
  color: @nav-color;
}

.nav-on {
  border-bottom: 2px solid #666;
  line-height: (@nav-height)-4;
}

.main-top {
  margin: auto;
  width: 600px;
  padding: 50px 50px 20px;
  overflow: hidden;
}

.main-top-left {
  float: left;
  margin-right: 50px;
  img {
    width: 215px;
    height: 215px;
    margin-left: -30px; //由于图片剪裁问题，因此向左移动弥补布局错位
  }
}

.main-top-right {
  float: left;
  text-align: left;

  &:after {
    clear: both;
  }

  h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 400;
    color: @font-color-deep;
  }
}

.main-download {
  button {
    .btn;
    box-sizing: border-box;
    margin: 10px;
    font-size: @font-btn-size1;
    color: @font-color-white;
    height: @btn-download-height;
    line-height: @btn-download-height/2;
    background: @main-color;
    -webkit-border-radius: @btn-download-height/2;
    -moz-border-radius: @btn-download-height/2;
    border-radius: @btn-download-height/2;
    padding: 0 @btn-row-padding;
    margin-right: @btn-download-mrgin-right;
  }
  a {
    color: @link-color;
  }
}

.character-wrap {
  width: 860px;
  min-height: 240px;
  text-align: center;
}

.character-box {
  h3 {
    color: @main-color;
    padding: 50px;
    min-width: 40px;
  }
  p {
    width: 100%;
    text-align: center;
  }
}

.page-content {
  min-height: @content-min-height;
  background: #fff;
  margin-top: (@nav-height)+@nav-padding-top*2;
  margin-bottom:@footer-height ;
}

.page-footer {
  color: @footer-color;
  background: @footer-bgc;
  height: @footer-height;
  margin-top: -(@footer-height);
  padding-bottom: 10px;

  //position: absolute;
  //width: 100%;
  //bottom: 0;
}

.foot-center {
  min-width: 350px;
  text-align: center;
}

.foot-link-img {
  padding: 20px;
  img {
    width: @link-icon-width;
    height: @link-icon-height;
    margin: 0 @link-icon-margin;
  }
}

.foot-link-text {
  a {
    color: @font-color-white;
    margin: 5px;
  }
  p {
    color: @font-color-white;
    margin: 10px;
  }
}

/*Download*/
.dl-title {
  font-size: @font-size-title;
  font-weight: @font-weight-400;
  color: @font-color-deep2;
  border-bottom: 1px solid @border-color-deep;
  margin: 20px 0;
}

.dl-content {
  padding: 15px 15px 50px;
}